package test;

import java.util.Date;
import java.util.TimerTask;

public class MyTime extends TimerTask {

    private Date date = null;

    @Override
    public void run() {
        date = new Date();
    }

    public Date getDate() {
        return date;
    }
}
